import React, { createContext } from "react"

export const DefaultConfigProvider = {
    prefixCls: "next",
    size: "default",
    getPopupContainer: () => document.body,
    focusLock: {
        modal: { autoFocus: true },
        drawer: { autoFocus: true }
    }
}
export const ConfigContext = createContext({
    getPrefixCls: (componentName, customPrefix) => `${customPrefix || "next"}-${componentName}`,
    ...DefaultConfigProvider
})